package com.ship.service;

import com.ship.entity.bo.Users;
import com.ship.entity.dto.JsonRequest;
import com.ship.entity.dto.UserInfoResponse;
import com.ship.jwt.JwtAuthenticationRequest;

import javax.servlet.http.HttpServletRequest;

public interface AuthService {
    Users register(Users userToAdd);
    UserInfoResponse login(JsonRequest<JwtAuthenticationRequest> authenticationRequest,HttpServletRequest request);
    String refresh(String oldToken);
    UserInfoResponse login(String username,String password);
    Users findByUsername(String username);
}
